package com.lb.jwitter;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.ForeignKey;

@Entity
@Table (name="tbl_QLDTTXA_HocVien")
public class Tbl_QLDTTXA_HocVien implements Serializable {
   private static final long serialVersionUID = -1989579066723007050L;

   private Long id;
   private String mSHV;
   private String hoTen;
   private String ten;
   private String hinhAnh;
   private Tbl_QLDTTXA_Lop lopId = null;
   private Tbl_QLDTTXA_DM_Nganh nganhId = null;
   private Tbl_QLDTTXA_DM_Khoa khoaId = null;
   private Tbl_QLDTTXA_DM_KhoaHoc khoaHocId = null;
   private Tbl_QLDTTXA_DM_ChiNhanh chiNhanhId = null;
   private Tbl_QLDTTXA_HoSoXetTuyen hoSoId = null;
   private Date ngayLap;
   private String ghiChu;
   private Tbl_QLDTTXA_DM_TrangThaiHocVien trangThaiId = null;

   @Id
   @GeneratedValue
   public Long getId() {
	    return id;
   }
   public void setId(Long id) {
	    this.id= id;
   }

   public String getMSHV() {
   	return mSHV;
   }
   public void setMSHV(String mSHV) {
   	this.mSHV= mSHV;
   }

   public String getHoTen() {
   	return hoTen;
   }
   public void setHoTen(String hoTen) {
   	this.hoTen= hoTen;
   }

   public String getHinhAnh() {
   	return hinhAnh;
   }
   public void setHinhAnh(String hinhAnh) {
   	this.hinhAnh= hinhAnh;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="lopId")
   @ForeignKey(name="FK_tbl_QLDTTXA_Lop_tbl_QLDTTXA_HocVien")
   public Tbl_QLDTTXA_Lop getLopId() {
	    return lopId;
   }
   public void setLopId(Tbl_QLDTTXA_Lop lopId) {
	    this.lopId=lopId;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="nganhId")
   @ForeignKey(name="FK_tbl_QLDTTXA_DM_Nganh_tbl_QLDTTXA_HocVien")
   public Tbl_QLDTTXA_DM_Nganh getNganhId() {
	    return nganhId;
   }
   public void setNganhId(Tbl_QLDTTXA_DM_Nganh nganhId) {
	    this.nganhId=nganhId;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="khoaId")
   @ForeignKey(name="FK_tbl_QLDTTXA_DM_Khoa_tbl_QLDTTXA_HocVien")
   public Tbl_QLDTTXA_DM_Khoa getKhoaId() {
	    return khoaId;
   }
   public void setKhoaId(Tbl_QLDTTXA_DM_Khoa khoaId) {
	    this.khoaId=khoaId;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="khoaHocId")
   @ForeignKey(name="FK_tbl_QLDTTXA_DM_KhoaHoc_tbl_QLDTTXA_HocVien")
   public Tbl_QLDTTXA_DM_KhoaHoc getKhoaHocId() {
	    return khoaHocId;
   }
   public void setKhoaHocId(Tbl_QLDTTXA_DM_KhoaHoc khoaHocId) {
	    this.khoaHocId=khoaHocId;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="chiNhanhId")
   @ForeignKey(name="FK_tbl_QLDTTXA_DM_ChiNhanh_tbl_QLDTTXA_HocVien")
   public Tbl_QLDTTXA_DM_ChiNhanh getChiNhanhId() {
	    return chiNhanhId;
   }
   public void setChiNhanhId(Tbl_QLDTTXA_DM_ChiNhanh chiNhanhId) {
	    this.chiNhanhId=chiNhanhId;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="hoSoId")
   @ForeignKey(name="FK_tbl_QLDTTXA_HoSoXetTuyen_tbl_QLDTTXA_HocVien")
   public Tbl_QLDTTXA_HoSoXetTuyen getHoSoId() {
	    return hoSoId;
   }
   public void setHoSoId(Tbl_QLDTTXA_HoSoXetTuyen hoSoId) {
	    this.hoSoId=hoSoId;
   }

   public Date getNgayLap() {
   	return ngayLap;
   }
   public void setNgayLap(Date ngayLap) {
   	this.ngayLap= ngayLap;
   }

   public String getGhiChu() {
   	return ghiChu;
   }
   public void setGhiChu(String ghiChu) {
   	this.ghiChu= ghiChu;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="trangThaiId")
   @ForeignKey(name="FK_tbl_QLDTTXA_DM_TrangThaiHocVien_tbl_QLDTTXA_HocVien")
   public Tbl_QLDTTXA_DM_TrangThaiHocVien getTrangThaiId() {
	    return trangThaiId;
   }
   public void setTrangThaiId(Tbl_QLDTTXA_DM_TrangThaiHocVien trangThaiId) {
	    this.trangThaiId=trangThaiId;
   }
public String getTen() {
	return ten;
}
public void setTen(String ten) {
	this.ten = ten;
}
}//endClass 

